package com.itheima.kebian;

public class Demo01 {

    public static void main(String[] args) {
       int[] arr={1,2,3,4};
       getSum(arr);
        int sum = getSum(1, 2, 3, 4);
        System.out.println(sum);


    }

    public static int getSum(int... arr){
        System.out.println(arr);
        return 0;
    }
   /* public static int getSum(int[] arr,int number){
        return 0;
    }*/
}
